<template>
  <div class="demo13">
    <div class="" v-for="i in list">1</div>
    <el-pagination background layout="prev, pager, next" :total="zongshu">
    </el-pagination>
    <el-button @click="zongshu = 0">0</el-button>
    <el-button @click="zongshu = 100">100</el-button>
    <el-button @click="zongshu = 1000">1000</el-button>
    <el-button @click="zongshu = 10000">10000</el-button>
  </div>
</template>
<script>
export default {
  data() {
    return {
      zongshu: 10000,

      list: []
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    getList() {
      axios.get().then(res => {
        this.zongshu = res.xxx;
        this.list = res.list;
      });
    }
  }
};
</script>

<style scoped lang="less">
.demo13 {
}
</style>
